<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="UTF-8" />
    <title>Checkbox - Indeterminate</title>
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
    />
    <link href="../../../../../css/ionic.bundle.css" rel="stylesheet" />
    <link href="../../../../../scripts/testing/styles.css" rel="stylesheet" />
    <script src="../../../../../scripts/testing/scripts.js"></script>
    <script nomodule src="../../../../../dist/ionic/ionic.js"></script>
    <script type="module" src="../../../../../dist/ionic/ionic.esm.js"></script>
  </head>

  <body>
    <ion-app>
      <ion-header>
        <ion-toolbar>
          <ion-title>Checkbox - Indeterminate</ion-title>
        </ion-toolbar>
      </ion-header>

      <ion-content class="ion-padding">
        <div id="checkboxes">
          <ion-checkbox indeterminate>Indeterminate</ion-checkbox><br />
          <ion-checkbox checked indeterminate>Checked / Indeterminate</ion-checkbox>
        </div>
      </ion-content>
    </ion-app>

    <script>
      var indeterminateCheckboxes = document.getElementsByClassName('indeterminate');

      for (var i = 0; i < indeterminateCheckboxes.length; i++) {
        var checkbox = indeterminateCheckboxes[i];
        checkbox.indeterminate = true;
      }
    </script>
  </body>
</html>
